
#页面类：首页
from selenium.webdriver.common.by import By

from utils.page_base import PageBase #导入基类
class PageIndex(PageBase):
    url="/"
    # loc_login=By.XPATH,"//a[@href='/simple/login']"
    loc_login=By.XPATH,"href,/simple/login"


    def __init__(self,driver,base_url):
        PageBase.__init__(self,driver,base_url)

    #打开该页面
    def openUrl(self):
        self.open(PageIndex.url)


    #点击“登录”按钮
    def click_login(self):
        self.click(PageIndex.loc_login)